// 天空背景类
import * as THREE from 'three'
export class Sky {
  constructor(scene) {
    this.scene = scene
  }
  setBack(publicPath, pathList) {
    const textureLoad = new THREE.CubeTextureLoader()
    const texture = textureLoad.setPath(publicPath)
    const map = texture.load(pathList)
    this.scene.background = map
  }

}